<template>
	<text>{{money_symbol}}</text>
</template>

<script>
	export default {
		name: 'currency',
		props: {
			
		},
		data() {
			return {
				money_symbol: ''
			}
		},
		mounted () {
			var _this = this;
			var app = getApp()
			if (!app.globalData.open_multilingual) {
			  _this.money_symbol = '￥'
			} else {
			  var timer = setInterval(function () {
			    if (app.globalData.config) {
			      clearInterval(timer);
			      console.log('清除货币符号检查');
			
			      if (!app.globalData.config.config.Currency_symbol) {
			        var money_symbol = '￥';
			      } else {
			        var money_symbol = app.globalData.config.config.Currency_symbol;
			      }
			
			      _this.money_symbol = money_symbol
			    }
			  }, app.globalData.config ? 1 : 50);
			}
		},
		methods: {
			
		}
	}
</script>
<style scoped>
	.lang-box {
		display: inline-block;
	}

	.lang-wrapper {
		white-space: normal;
	}

	.laang-left {
		margin-left: 4px;
	}

	.lang-right {
		margin-right: 4px;
	}
</style>
